All Questions
91 questions
-2votes
1answer
46views
Strange issues with using crontab to run a python script
I'm working on a project that needs to run headless - I need to run a python script "main.py" within a virtual environment at boot. I decided to use crontab to do this. My crontab line is as ...
0votes
2answers
183views
Why isn't the display environment starting with this script at boot?
I have a Raspberry Pi 4 running Debian GNU/Linux 12 (bookworm) I have a Python script in a shell file launcher.sh (with executable for all permissions) that runs happily without complaint if I ...
0votes
0answers
45views
rc. local not working
I have an issue with opening Python script at startup. I have added python /home/serhii/Desktop/Packed/Hello.py & to rc.local and the script does not open. But, the command sudo pigpiod is working....
1vote
1answer
417views
Can't play song on startup using Python and rc.local
I have a python app called main.py, that runs upon startup using rc.local. During this app's runtime, it runs an external bash script 'play.sh' that runs vlc to play a song. The code in the 'play.sh' ...
0votes
0answers
146views
If I start a script using audostart where do my logs go?
I've added an entry to my /etc/xdg/lxsession/LXDE-pi/autostart file as follows: @lxpanel --profile LXDE-pi @pcmanfm --desktop --profile LXDE-pi @xscreensaver -no-splash @/usr/bin/python /home/pi/...
0votes
0answers
248views
python script does not start at boot
I follow this blog to the t to start a python script on startup. (Rasperi pi4B OS 64bit) my launcher.sh works fine she trying sh launcher.sh the file looks like: cd /home/pi/Documents PYTHONPATH=/home/...
0votes
1answer
267views
launcher.sh behaves differently @reboot than calling with sh
I was send here from Stackoverflow. Thank you for your help. I am using a launcher.sh for a raspberrypi 4B with Raspi os x64 to start a python script in a python env on startup. But setting the ...
0votes
3answers
114views
Trying to run a python program on boot - error file location?
I have edited rclocal to include this line: python3 /path/to/my/program.py & I used an ampersand as my program has an infinite loop. The program never runs though. The program: import RPi.GPIO as ...
0votes
2answers
728views
Python script runs in rc.local, but won't save file, Works from command line
I have a python script that saves values from a MPU6050 sensor to a csv, and then zips the file. When I run it from Thonny or direct from the command line, it works. When I run from rc.local at ...
0votes
2answers
499views
How to run python script at startup?
I've been all over the internet looking for a solution for this but everybody seems to have different answers and none of them work. I have a python script that emits audio through the headphone jack ...
-1votes
1answer
29views
camera program gives error when run in /etc/profile but the program runs fine
This is the error I get : picamera.exc.PiCameraMMALError: Failed to enable connection: Out of resources import numpy as np import os from picamera import PiCamera from time import sleep from gpiozero ...
0votes
0answers
190views
Raspberry locked in Blackscreen after editing /etc/profile
Im Working on a Project, that on buttonpress via GPIO things would happen. I got it working and wanted to add a way, that the Program starts on boot up. A quick search later i found this Video: https:/...
0votes
2answers
6kviews
Configure Pi to boot up and run script when plugged in without login
How can i set up my pi zero, so that if I plug it in, it runs a python program, without having to login etc? The project goal is a device that plays an audio file on the push of a hardware button. I ...
2votes
2answers
580views
Trouble running a python script at startup
For context, I am using a Raspberry Pi 2 model B, and I am trying to run a continuous python script when the pi boots up. The script uses the GPIO Pins, and with the data it recieves, it changes ...
1vote
1answer
69views
Don't understand error trying to run a shell script on startup
I have a program that I want to run when the Pi starts up; it is the only program I expect to run in this environment; when the program ends, the Pi can shut down (after I'm done debugging things). ...